<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/2/28 0028
 * Time: 19:52
 */
//http://rango.swoole.com/
class Index
{
    public function fuc()
    {
        $obj = new SplDoublyLinkedList();//实例话双向链表
        $obj -> push('g');
        $obj -> push('y');
        $obj -> push('z');
        $obj -> rewind();
        $obj->next();
        $obj->unshift(10);
        $obj->pop();
        $obj->shift();
        $res = $obj->offsetExists(5);
//        var_dump($res);
//        var_dump($obj);
        var_dump($obj->key());
//        echo '我是指针，我现在所在的位置是:'.$obj -> current();
    }
}
$obj = new Index();
$obj->fuc();